/*
 * Copyright (c) 2021 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * introduction:
 * @author HelloKun （https://space.bilibili.com/475950146）
 * @brief 智慧终端机器人MRobot -详细功能说明见mrobot.h
 * @function
 *   认识宇宙
 * @copyright Copyright (c) 2022
 */

import router from '@system.router';

export default {
    data: {
        title: "Hello World",
        word_list: [
            {
                title: 'Solar System',
                img:'/common/images/solar-system.png',
            },
            {
                title: 'Mercury',
                img:'/common/images/mercury.jpg',
            },
            {
                title: 'Venus',
                img:'/common/images/venus.jpg',
            },
            {
                title: 'Earth',
                img:'/common/images/earth.jpg',
            },
            {
                title: 'Mars',
                img:'/common/images/mars.jpg',
            },
            {
                title: 'Jupiter',
                img:'/common/images/jupiter.jpg',
            },
            {
                title: 'Saturn',
                img:'/common/images/saturn.jpg',
            },
            {
                title: 'Uranus',
                img:'/common/images/uranus.jpg',
            },
            {
                title: 'Neptune',
                img:'/common/images/neptune.png',
            },
        ],

    },
    ToHomePage(){
        this.work_status ='退出';
        router.replace({
            uri: 'pages/jscontrol/jscontrol',
        });
    },
    ToGamePage(){
        this.work_status ="寓教于乐界面"
        router.replace({
            uri: 'pages/game_page/game_page'
        })
    },

}